PATHMac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Appearance Manager >

Programming With the Appearance Manager


GetThemeTrackThumbPositionFromRegion

Obtains the relative position of a track's indicator, given its current position.

pascal OSStatus GetThemTrackThumbPositionFromRegion (
                     const ThemeTrackDrawInfo *drawInfo,
                     RgnHandle thumbRgn,
                     SInt32 *relativePosition);
drawInfo
A pointer to a structure of type ThemeTrackDrawInfo . Before calling GetThemeTrackThumbPositionFromRegion , set the structure to contain the current visual characteristics of the track.
thumbRgn
A value of type RgnHandle . Before calling GetThemeTrackThumbPositionFromRegion set the region to contain the actual dimensions and position of the indicator, in local coordinates.
relativePosition
A pointer to a signed 32-bit value. On return, this value contains the new distance, in pixels, between the minimum end of the track and the near side of the indicator.
function result
A result code; see Result Codes .
DISCUSSION

Your application can use the GetThemeTrackThumbPositionFromRegion function to respond to the kControlMsgCalcValueFromPos control definition message.

VERSION NOTES

Available with Appearance Manager 1.1 and later.


© 1999 Apple Computer, Inc. – (Last Updated 29 April 99)